<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue基础模板</title>
    <script src="../vue.js"></script>
</head>
<style>
      .publish{
            width: 100px;
            height: 100px;
            transition: all 1s;
        }
        .skyblue{
            background-color: skyblue;
        }
        .red{
            background-color: red;
        }
        .r{
            transform: rotateZ(45deg);
        }
        .move{
            transform: translateX(40px)  
        }
        .radius{
            border-radius: 50%;
        }
</style>
<body>
    <div id="app">
        <div class="publish" :class="red"></div>
        <div class="publish" :class="styleObj"></div>
        <div class="publish" :class="styleArr"></div>
        <div class="publish"></div>
    </div>

    <script>
        Vue.config.productionTip = false;
        const vm = new Vue({
            el: "#app",
            data() {
                return {
                    red:'red',
                    styleObj:{
                        r:true,
                        skyblue:true,
                    },
                    styleArr:['radius','red','move'],
                }
            }
        })
    </script>
</body>

</html>